package net;

import java.net.InetSocketAddress;

/**
 * @author Mark
 * @version 1.0
 * @date 2020/5/17 17:15
 * @description 网络套接字
 */
public class NetSocket {
    public static void main(String[] args) {
        InetSocketAddress inetSocketAddress = new InetSocketAddress("localhost", 8080);
        System.out.println(inetSocketAddress);
        System.out.println(inetSocketAddress.getPort());
        System.out.println(inetSocketAddress.getAddress());
    }
}
